package com.kingmed.kmss.common.bo.bpmn;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.Map;

import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModelProperty;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class TaskBO implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7499484523344709536L;

	private String taskId;
	private String bizId;
	private String taskName;
	private String taskDefinitionKey;

	private String description;

	private String assigneeId;
	private String delegateUserId;
//	private String tenantId;
	private String category;
	//private Date dueDate;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date startTime;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date claimTime;
	private String status;

	private String groupId;
	private String parentTaskId;
	private String executionId;
	private String processInstanceId;
	private String processDefinitionId;
	private String taskDefinitionId;
	private String processInstanceName;
	private String processInstanceBizKey;

	private ProcessVariableBO procVars;

	private CommentBO commentBO;
	private String bizTitle;
	
	@ApiModelProperty("申请人")
	private String userName;
	private String orgName;
	private String bizType;
	private String bizTypeName;
	
	private Map<String, Object> vars;

}
